Skip to content

docs: add Agent Skills SKILL.md#1949

Open
bearomorphism wants to merge 1 commit intocommitizen-tools:masterfrom
bearomorphism:docs/add-skill-md
Open

docs: add Agent Skills SKILL.md#1949
bearomorphism wants to merge 1 commit intocommitizen-tools:masterfrom
bearomorphism:docs/add-skill-md

Conversation

@bearomorphism
Copy link
Copy Markdown
Collaborator

@bearomorphism bearomorphism commented May 7, 2026

Description

Add a SKILL.md following the Agent Skills spec at .agents/skills/commitizen/SKILL.md, so AI agents working in this repo can auto-discover Commitizen's capabilities.

The file provides concise guidance on command selection, configuration discovery, versioning, changelog generation, CI workflows, and exit-code handling.

Checklist

Was generative AI tooling used to co-author this PR?

  • Yes (GitHub Copilot CLI)

Generated-by: GitHub Copilot CLI following the guidelines

Code Changes

  • Add test cases to all the changes you introduce (N/A - docs only)
  • Run uv run poe all locally to ensure this change passes linter check and tests
  • Manually test the changes:
    • Verify the feature/bug fix works as expected in real-world scenarios
    • Test edge cases and error conditions
    • Ensure backward compatibility is maintained
    • Document any manual testing steps performed
  • Update the documentation for the changes

Documentation Changes

  • Run uv run poe doc locally to ensure the documentation pages renders correctly
  • Check and fix any broken links (internal or external)

Expected Behavior

Agents supporting the Agent Skills format (Claude Code, VS Code/Copilot, Cursor, Gemini CLI, OpenAI Codex, etc.) can auto-discover the skill at .agents/skills/commitizen/SKILL.md when working in this repo.

Steps to Test This Pull Request

  1. Verify .agents/skills/commitizen/SKILL.md exists
  2. Check YAML frontmatter includes required name and description fields
  3. Verify directory name (commitizen) matches the name field in frontmatter

Additional Context

Part of #1936. The llms.txt portion is addressed in PR #1948.

Moved from repo root to .agents/skills/commitizen/ based on research showing that compliant agents scan .agents/skills/<name>/ directories, not the repo root. See PR comment for full research findings.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a root-level SKILL.md documenting Commitizen usage for agentic workflows (command selection, config discovery, bump/changelog safety, CI considerations) in the Agent Skills format.

Changes:

  • Introduces SKILL.md with YAML frontmatter (name, description, etc.) and Commitizen-oriented guidance.
  • Documents config discovery order, safe/read-only command patterns, and bump/changelog operational cautions.
  • Adds curated links to existing command/config/CI/exit-code documentation plus a few CLI examples.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread SKILL.md Outdated
Comment thread .agents/skills/commitizen/SKILL.md
@bearomorphism
Copy link
Copy Markdown
Collaborator Author

Validation

Verified that all review comments have been addressed:

Currently researching whether SKILL.md at the repo root follows the intended Agent Skills discovery pattern. Will update with findings.

@bearomorphism
Copy link
Copy Markdown
Collaborator Author

Research Findings on Agent Skills Discovery

After researching the Agent Skills spec and how agents actually discover skills:

SKILL.md at the repo root will NOT be auto-discovered by any agent. The spec requires skills to live in a named subdirectory within a skills folder:

Scope Scan path
Project <project>/.agents/skills//SKILL.md\
User ~/.agents/skills//SKILL.md\
Client-specific <project>/./skills//SKILL.md\

35 agents support this format (Claude Code, VS Code/Copilot, Cursor, Gemini CLI, OpenAI Codex, etc.), but they all scan these specific directories — not the repo root.

Recommendation: Move \SKILL.md\ to .agents/skills/commitizen/SKILL.md\ so agents working within this repo can discover it automatically. This also satisfies the spec constraint that the directory name must match the
ame\ field in frontmatter.

Note: No other major Python CLI tool (ruff, black, pytest, pre-commit) has adopted SKILL.md yet — commitizen would be an early adopter.

@bearomorphism bearomorphism marked this pull request as draft May 7, 2026 10:05
Add SKILL.md at .agents/skills/commitizen/ following the Agent Skills spec so that AI agents working in this repo can auto-discover it.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bearomorphism bearomorphism marked this pull request as ready for review May 7, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants